package com.gzx.plugin.tjzy.feign.call.receipt.controller;

import com.gzx.plugin.tjzy.feign.call.receipt.service.GzxCallReceiptFeignService;
import com.gzx.tjzy.feign.resp.call.receipt.GzxCallReceiptDto;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author zjt
 * @description
 * @date 2025/4/25 10:53
 */
@Slf4j
@RequiredArgsConstructor
@RestController
@RequestMapping("/feign/tjzy/call/receipt")
public class GzxCallReceiptFeignController {

    private final GzxCallReceiptFeignService callReceiptFeignService;

    @RequestMapping("/getCallReceiptByCallIdList")
    public List<GzxCallReceiptDto> getCallReceiptByCallIdList(@RequestBody List<String> callIdList) {
        return callReceiptFeignService.getCallReceiptByCallIdList(callIdList);
    }

    @RequestMapping("/updateApproveStatus")
    public void updateApproveStatus(String callId, Integer status) {
        callReceiptFeignService.updateApproveStatus(callId, status);
    }
}
